package cn.csc.module.distribute.api.downline;


import cn.csc.framework.common.pojo.CommonResult;
import cn.csc.module.distribute.api.downline.dto.CreateDistributeDownlineReqDTO;
import cn.csc.module.distribute.service.downline.DistributeDownlineService;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;


/**
 * @author yql
 * @version 1.0
 * @date 2025/4/27 15:59
 * @modify
 */
@RestController
public class DistributeDownlineApiImpl implements DistributeDownlineApi {

    @Resource
    private DistributeDownlineService distributeDownlineService;


    @Override
    public CommonResult<Boolean> relate(CreateDistributeDownlineReqDTO reqDTO) {
        distributeDownlineService.relate(reqDTO);
        return CommonResult.success(true);
    }


}
